package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class BaseUser implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer id;
    private String areaid;
    private Date createtime;
    private String cssStyle;
    private String email;
    private String mobile;
    private Date modifyTime;
    private String orgId;
    private String password;
    private String realname;
    private Integer state;
    private String username;
    private Integer flag;
    private String cityId;
    private String cityName;
    private String countyId;
    private String countyName;
    private String agentids;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BaseUser withId(Integer id) {
        this.setId(id);
        return this;
    }

    public String getAreaid() {
        return areaid;
    }

    public void setAreaid(String areaid) {
        this.areaid = areaid == null ? null : areaid.trim();
    }

    public BaseUser withAreaid(String areaid) {
        this.setAreaid(areaid);
        return this;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public BaseUser withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public String getCssStyle() {
        return cssStyle;
    }

    public void setCssStyle(String cssStyle) {
        this.cssStyle = cssStyle == null ? null : cssStyle.trim();
    }

    public BaseUser withCssStyle(String cssStyle) {
        this.setCssStyle(cssStyle);
        return this;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public BaseUser withEmail(String email) {
        this.setEmail(email);
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public BaseUser withMobile(String mobile) {
        this.setMobile(mobile);
        return this;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public BaseUser withModifyTime(Date modifyTime) {
        this.setModifyTime(modifyTime);
        return this;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId == null ? null : orgId.trim();
    }

    public BaseUser withOrgId(String orgId) {
        this.setOrgId(orgId);
        return this;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public BaseUser withPassword(String password) {
        this.setPassword(password);
        return this;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

    public BaseUser withRealname(String realname) {
        this.setRealname(realname);
        return this;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public BaseUser withState(Integer state) {
        this.setState(state);
        return this;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public BaseUser withUsername(String username) {
        this.setUsername(username);
        return this;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public BaseUser withFlag(Integer flag) {
        this.setFlag(flag);
        return this;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId == null ? null : cityId.trim();
    }

    public BaseUser withCityId(String cityId) {
        this.setCityId(cityId);
        return this;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName == null ? null : cityName.trim();
    }

    public BaseUser withCityName(String cityName) {
        this.setCityName(cityName);
        return this;
    }

    public String getCountyId() {
        return countyId;
    }

    public void setCountyId(String countyId) {
        this.countyId = countyId == null ? null : countyId.trim();
    }

    public BaseUser withCountyId(String countyId) {
        this.setCountyId(countyId);
        return this;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName == null ? null : countyName.trim();
    }

    public BaseUser withCountyName(String countyName) {
        this.setCountyName(countyName);
        return this;
    }

    public String getAgentids() {
        return agentids;
    }

    public void setAgentids(String agentids) {
        this.agentids = agentids == null ? null : agentids.trim();
    }

    public BaseUser withAgentids(String agentids) {
        this.setAgentids(agentids);
        return this;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", areaid=").append(areaid);
        sb.append(", createtime=").append(createtime);
        sb.append(", cssStyle=").append(cssStyle);
        sb.append(", email=").append(email);
        sb.append(", mobile=").append(mobile);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", orgId=").append(orgId);
        sb.append(", password=").append(password);
        sb.append(", realname=").append(realname);
        sb.append(", state=").append(state);
        sb.append(", username=").append(username);
        sb.append(", flag=").append(flag);
        sb.append(", cityId=").append(cityId);
        sb.append(", cityName=").append(cityName);
        sb.append(", countyId=").append(countyId);
        sb.append(", countyName=").append(countyName);
        sb.append(", agentids=").append(agentids);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}